package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.controller.DoctorController;
import com.example.dto.DoctorInfoDTO;
import com.example.mapper.DoctorMapper;
import com.example.mapper.HospitalMapper;
import com.example.mapper.HpDocMapper;
import com.example.pojo.Doctor;
import com.example.pojo.Hospital;
import com.example.pojo.HpDoc;
import com.example.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class DoctorServiceImpl implements DoctorService { // 假设DoctorService是一个定义了selectDoctorBydocId方法的接口

    @Autowired
    private DoctorMapper doctorMapper;

    @Override
    public List<Doctor> getAllDoctors() {
        return doctorMapper.getAllDoctors();
    }


    @Autowired
    public DoctorServiceImpl(DoctorMapper doctorMapper) {
        this.doctorMapper = doctorMapper;
    }

    @Override
    public Doctor selectDoctorByDocId(Integer docId) {
        return doctorMapper.selectDoctorByDocId(docId);
    }
}
